/// code : 1
/// data : {"apis":[{"course_id":10301,"course_name":"Kotlin+Jetpack实战「从0开发菜鸟窝在线教育App」","login_api_url":"/accounts/course/10301/login"},{"course_id":10311,"course_name":"Flutter实战「从0开发一款上线商用App」","login_api_url":"/accounts/course/10311/login"}],"message":"course.api.cniao5.com 域名下不允许调用该接口。请选择对应课程的登录接口"}
/// message : "成功"

class User {
  int _code;
  Data _data;
  String _message;

  int get code => _code;

  Data get data => _data;

  String get message => _message;

  User({int code=-1, Data data, String message}) {
    _code = code;
    _data = data;
    _message = message;
  }

  User.fromJson(dynamic json) {
    _code = json["code"];
    _data = json["data"] != null ? Data.fromJson(json["data"]) : null;
    _message = json["message"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["code"] = _code;
    if (_data != null) {
      map["data"] = _data.toJson();
    }
    map["message"] = _message;
    return map;
  }
}

/// apis : [{"course_id":10301,"course_name":"Kotlin+Jetpack实战「从0开发菜鸟窝在线教育App」","login_api_url":"/accounts/course/10301/login"},{"course_id":10311,"course_name":"Flutter实战「从0开发一款上线商用App」","login_api_url":"/accounts/course/10311/login"}]
/// message : "course.api.cniao5.com 域名下不允许调用该接口。请选择对应课程的登录接口"

class Data {
  List<Apis> _apis;
  String _message;

  List<Apis> get apis => _apis;

  String get message => _message;

  Data({List<Apis> apis, String message}) {
    _apis = apis;
    _message = message;
  }

  Data.fromJson(dynamic json) {
    if (json["apis"] != null) {
      _apis = [];
      json["apis"].forEach((v) {
        _apis.add(Apis.fromJson(v));
      });
    }
    _message = json["message"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    if (_apis != null) {
      map["apis"] = _apis.map((v) => v.toJson()).toList();
    }
    map["message"] = _message;
    return map;
  }
}

/// course_id : 10301
/// course_name : "Kotlin+Jetpack实战「从0开发菜鸟窝在线教育App」"
/// login_api_url : "/accounts/course/10301/login"

class Apis {
  int _courseId;
  String _courseName;
  String _loginApiUrl;

  int get courseId => _courseId;

  String get courseName => _courseName;

  String get loginApiUrl => _loginApiUrl;

  Apis({int courseId, String courseName, String loginApiUrl}) {
    _courseId = courseId;
    _courseName = courseName;
    _loginApiUrl = loginApiUrl;
  }

  Apis.fromJson(dynamic json) {
    _courseId = json["course_id"];
    _courseName = json["course_name"];
    _loginApiUrl = json["login_api_url"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["course_id"] = _courseId;
    map["course_name"] = _courseName;
    map["login_api_url"] = _loginApiUrl;
    return map;
  }
}
